import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld.vue'
import Login from '@/components/login/login.vue'
import Index from '@/components/index/index.vue'
import Home from '@/components/home/home.vue'
import Teaching from '@/components/teaching/teaching.vue'
import Grade from '@/components/grade/grade.vue'
import Classes from '@/components/classes/classes.vue'
import Student from '@/components/student/student.vue'
import StudentNow from '@/components/student/studentNow.vue'
import Teacher from '@/components/teacher/teacher.vue'
import Syllabus from '@/components/syllabus/syllabus.vue'
import Plan from '@/components/teaching-plan/plan.vue'
import Planlibrary from '@/components/plan-library/plan-library.vue'
import Lesson from '@/components/lesson/lesson.vue'
import BeginClass from '@/components/beginClass/beginClass.vue'
import Homework from '@/components/homework/homework.vue'
import WatchHomework from '@/components/homework/watchHomework.vue'
import Equipment from '@/components/equipment/equipment.vue'
import Resources from '@/components/resources/resources.vue'
import video from '@/components/resources/video.vue'
import BookList from '@/components/resources/bookList.vue'
import Content from '@/components/content/content.vue'
import VideoContent from '@/components/videocontent/videocontent.vue'
import Book from '@/components/book/book.vue'
import Echarts from '@/components/echarts/echarts.vue'
import TeachingPlan from '@/components/teachingPlan/teachingPlan.vue'
import CreateLesson from '@/components/createLesson/createLesson.vue'
import EditLesson from '@/components/editLesson/editLesson.vue'
import PlanContent from '@/components/planContent/planContent.vue'
import HeartRate from '@/components/heartRate/heartRate.vue'
import Set from '@/components/set/set.vue'
import Feedback from '@/components/feedback/feedback.vue'
import Notice from '@/components/notice/notice.vue'
import Constitution from '@/components/echarts/constitution.vue'
import Stu_data from '@/components/echarts/stu_data.vue'
import Data_import from '@/components/echarts/data_import.vue'
import One_grade_data from '@/components/echarts/one_grade_data.vue'

Vue.use(Router)

export default new Router({
  routes: [
  	  {path:'/',redirect:{name:'login'}},
      {path: '/login',name: 'login',component: Login},
      {path: '/index',name: 'index',component: Index,children:[
      	{name:'home',path:"/home",component:Home,meta:{requireAuth:true}},
      	{name:'teaching',path:"/teaching",component:Teaching,meta:{requireAuth:true}},
      	{name:'grade',path:'/grade',component:Grade,meta:{requireAuth:true}},
      	{name:'classes',path:'/classes',component:Classes,meta:{requireAuth:true}},
      	{name:'student',path:'/student',component:Student,meta:{requireAuth:true}},
      	{name:'studentNow',path:'/studentNow/:id',component:StudentNow,meta:{requireAuth:true}},
      	{name:'teacher',path:'/teacher',component:Teacher,meta:{requireAuth:true}},
      	{name:'teachingPlan',path:'/teachingPlan',component:TeachingPlan,meta:{requireAuth:true}},
      	{name:'syllabus',path:'/syllabus',component:Syllabus,meta:{requireAuth:true}},
      	{name:'plan',path:'/plan',component:Plan,meta:{requireAuth:true}},
      	{name:'plan-library',path:'/plan-library',component:Planlibrary,meta:{requireAuth:true}},
      	{name:'lesson',path:'/lesson',component:Lesson,meta:{requireAuth:true}},
      	{name:'beginClass',path:'/beginClass',component:BeginClass,meta:{requireAuth:true}},
      	{name:'homework',path:'/homework',component:Homework,meta:{requireAuth:true}},
      	{name:'watchHomework',path:'/watchHomework/:id',component:WatchHomework,meta:{requireAuth:true}},
      	{name:'equipment',path:'/equipment',component:Equipment,meta:{requireAuth:true}},
      	{name:'resources',path:'/resources',component:Resources,meta:{requireAuth:true}},
      	{name:'video',path:'/video',component:video,meta:{requireAuth:true}},
      	{name:'bookList',path:'/bookList',component:BookList,meta:{requireAuth:true}},
      	{name:'content',path:'/content/:id',component:Content,meta:{requireAuth:true}},
      	{name:'videocontent',path:'/videocontent/:id',component:VideoContent,meta:{requireAuth:true}},
      	{name:'book',path:'/book/:id',component:Book,meta:{requireAuth:true}},
      	{name:'echarts',path:'/echarts',component:Echarts,meta:{requireAuth:true}},
      	{name:'createLesson',path:'/createLesson',component:CreateLesson,meta:{requireAuth:true}},
      	{name:'editLesson',path:'/editLesson/:id',component:EditLesson,meta:{requireAuth:true}},
      	{name:'planContent',path:'/planContent/:id',component:PlanContent,meta:{requireAuth:true}},
      	{name:'heartRate',path:'/heartRate',component:HeartRate,meta:{requireAuth:true}},
      	{name:'set',path:'/set',component:Set,meta:{requireAuth:true}},
      	{name:'feedback',path:'/feedback',component:Feedback,meta:{requireAuth:true}},
      	{name:'notice',path:'/notice',component:Notice,meta:{requireAuth:true}},
      	{name:'constitution',path:'/constitution',component:Constitution,meta:{requireAuth:true}},
      	{name:'stu_data',path:'/stu_data',component:Stu_data,meta:{requireAuth:true}},
      	{name:'data_import',path:'/data_import',component:Data_import,meta:{requireAuth:true}},
      	{name:'one_grade_data',path:'/one_grade_data',component:One_grade_data,meta:{requireAuth:true}},
      ]},
  ]
})
